using System;
using System.Collections;
using System.Collections.Generic;

using DATA.Base;

namespace DATA.BusinessObjects
{
    public partial class Chitietmatdosudungphong : BusinessBase<string>
    {
        #region Declarations

		private int? _soNgayThue = null;
		private int? _tyLe = null;
		
		private Matdosudungphong _matdosudungphong = null;
		private Phong _phong = null;
		
		
		#endregion

        #region Constructors

        public Chitietmatdosudungphong() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_soNgayThue);
			sb.Append(_tyLe);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual int? SoNgayThue
        {
            get { return _soNgayThue; }
			set
			{
				OnSoNgayThueChanging();
				_soNgayThue = value;
				OnSoNgayThueChanged();
			}
        }
		partial void OnSoNgayThueChanging();
		partial void OnSoNgayThueChanged();
		
		public virtual int? TyLe
        {
            get { return _tyLe; }
			set
			{
				OnTyLeChanging();
				_tyLe = value;
				OnTyLeChanged();
			}
        }
		partial void OnTyLeChanging();
		partial void OnTyLeChanged();
		
		public virtual Matdosudungphong Matdosudungphong
        {
            get { return _matdosudungphong; }
			set
			{
				OnMatdosudungphongChanging();
				_matdosudungphong = value;
				OnMatdosudungphongChanged();
			}
        }
		partial void OnMatdosudungphongChanging();
		partial void OnMatdosudungphongChanged();
		
		public virtual Phong Phong
        {
            get { return _phong; }
			set
			{
				OnPhongChanging();
				_phong = value;
				OnPhongChanged();
			}
        }
		partial void OnPhongChanging();
		partial void OnPhongChanged();
		
        #endregion
    }
}
